package client;

import java.io.*;
import java.net.*;
import java.util.*;

public class ClientTestMain {
	public static void main(String[] args) throws UnknownHostException, IOException {
		
		Scanner sc = new Scanner(System.in);
		
		ClientTest client = new ClientTest();
		System.out.println("Connected.");
		
		Thread t = new Thread(client);
		t.start();
		
		while(true) {
			String msg = sc.nextLine();
			client.write(msg);
		}
		
	}
}
